package com.chixing.jdbc.day01.pojo;

public class Department {
    private int departmentNo;
    private String departentName;
    private String departmentLocation;
    public Department(){}
    public Department(int departmentNo, String departentName, String departmentLocation) {
        this.departmentNo = departmentNo;
        this.departentName = departentName;
        this.departmentLocation = departmentLocation;
    }

    public int getDepartmentNo() {
        return departmentNo;
    }

    public void setDepartmentNo(int departmentNo) {
        this.departmentNo = departmentNo;
    }

    public String getDepartentName() {
        return departentName;
    }

    public void setDepartentName(String departentName) {
        this.departentName = departentName;
    }

    public String getDepartmentLocation() {
        return departmentLocation;
    }

    public void setDepartmentLocation(String departmentLocation) {
        this.departmentLocation = departmentLocation;
    }

    @Override
    public String toString() {
        return "Department{" +
                "departmentNo=" + departmentNo +
                ", departentName='" + departentName + '\'' +
                ", departmentLocation='" + departmentLocation + '\'' +
                '}';
    }
}
